package com.jpro.module.infra.controller.admin.file.vo.file;



import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "管理后台 - 上传 Response VO")
@Data
public class FileUploadResult {

    @Schema(description =  "文件编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")
    private Long id;

    @Schema(description =  "文件 URL", requiredMode = Schema.RequiredMode.REQUIRED, example = "https://www.jprocms.com/jpro.jpg")
    private String url;

    @Schema(description =  "文件类型", example = "jpg")
    private String type;

    @Schema(description = "文件大小")
    private Integer size;

    @Schema(description = "文件名称")
    private String name;

    @Schema(description = "音视频时长")
    private Long duration;

    @Schema(description = "视频封面截图")
    private String posterUrl;

    //文库信息
    @Schema(description = "文库文档原文 URL")
    private String originDoc;

    @Schema(description = "文库文档PDF URL")
    private String docPdf;

    @Schema(description = "文件名称")
    private String docName;

    @Schema(description =  "文件首页图片 URL")
    private String docImage;

}
